package com.baobao.dao;

import com.baobao.domain.Banji;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Banji entities.
 * 
 */
public interface BanjiDAO extends JpaDao<Banji> {

	/**
	 * JPQL Query - findBanjiByMasterPhone
	 *
	 */
	public Set<Banji> findBanjiByMasterPhone(String masterPhone) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterPhone
	 *
	 */
	public Set<Banji> findBanjiByMasterPhone(String masterPhone, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByIdContaining
	 *
	 */
	public Set<Banji> findBanjiByIdContaining(String id) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByIdContaining
	 *
	 */
	public Set<Banji> findBanjiByIdContaining(String id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiBySchoolIdContaining
	 *
	 */
	public Set<Banji> findBanjiBySchoolIdContaining(String schoolId) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiBySchoolIdContaining
	 *
	 */
	public Set<Banji> findBanjiBySchoolIdContaining(String schoolId, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllBanjis
	 *
	 */
	public Set<Banji> findAllBanjis() throws DataAccessException;

	/**
	 * JPQL Query - findAllBanjis
	 *
	 */
	public Set<Banji> findAllBanjis(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByPrimaryKey
	 *
	 */
	public Banji findBanjiByPrimaryKey(String id_1) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByPrimaryKey
	 *
	 */
	public Banji findBanjiByPrimaryKey(String id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiBySchoolId
	 *
	 */
	public Set<Banji> findBanjiBySchoolId(String schoolId_1) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiBySchoolId
	 *
	 */
	public Set<Banji> findBanjiBySchoolId(String schoolId_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterName
	 *
	 */
	public Set<Banji> findBanjiByMasterName(String masterName) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterName
	 *
	 */
	public Set<Banji> findBanjiByMasterName(String masterName, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterNameContaining
	 *
	 */
	public Set<Banji> findBanjiByMasterNameContaining(String masterName_1) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterNameContaining
	 *
	 */
	public Set<Banji> findBanjiByMasterNameContaining(String masterName_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByName
	 *
	 */
	public Set<Banji> findBanjiByName(String name) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByName
	 *
	 */
	public Set<Banji> findBanjiByName(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiById
	 *
	 */
	public Banji findBanjiById(String id_2) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiById
	 *
	 */
	public Banji findBanjiById(String id_2, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterPhoneContaining
	 *
	 */
	public Set<Banji> findBanjiByMasterPhoneContaining(String masterPhone_1) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByMasterPhoneContaining
	 *
	 */
	public Set<Banji> findBanjiByMasterPhoneContaining(String masterPhone_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByNameContaining
	 *
	 */
	public Set<Banji> findBanjiByNameContaining(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findBanjiByNameContaining
	 *
	 */
	public Set<Banji> findBanjiByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

}